﻿using System;

namespace DL.AI.AIBT.Example
{
    //行为策略
    public class ActionStrategy : IStrategy
    {
        private readonly Action m_DoSomething;

        public ActionStrategy(Action doSomething)
        {
            m_DoSomething = doSomething;
        }

        public Status Process()
        {
            m_DoSomething.Invoke();
            return Status.Success;
        }

        public void Reset()
        {
        }
    }
}